<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PaymentOrder extends Model
{
    protected $connection = 'mysql_center';
    protected $table = 'electric_payment_order';
    protected $guarded = [];

    public function community_owner()
    {
        return $this->hasOne(ElectricPlatformOwner::class, 'id','user_id');
    }
    public function platform_agent()
    {
        return $this->hasOne(ElectricPlatformAgent::class, 'id','fatherId');
    }

}
